<HTML><HEAD><TITLE>get_domain_size(?Var, -Size)</TITLE>
</HEAD><BODY>[ <A HREF="index.html">library(ic)</A> | <A HREF="../../index.html">Reference Manual</A> | <A HREF="../../fullindex.html">Alphabetic Index</A> ]
<H1>get_domain_size(?Var, -Size)</H1>
Size is the number of integer elements in the IC domain for Var
<DL>
<DT><EM>Var</EM></DT>
<DD>An IC variable or a number
</DD>
<DT><EM>Size</EM></DT>
<DD>A variable (or integer)
</DD>
</DL>
<H2>Description</H2>
<P>
   If Var is an integer IC variable, Size will be set to the number of 
   integer values in the domain of Var.  If Var is a number, then Size 
   will be set to 1.</P><P>

   Currently, an out of range exception would be raised if Var is an IC 
   variable of type real.  This may change in the future.</P>

<H3>Modes and Determinism</H3><UL>
<LI>get_domain_size(?, -) is det
</UL>
<H3>Fail Conditions</H3>
The initial value of Size fails to unify with the returned value.
<H3>Exceptions</H3>
<DL>
<DT><EM>(5) type error </EM>
<DD>Var is neither an IC variable or number.
<DT><EM>(6) out of range </EM>
<DD>Var is a IC variable of type real.
</DL>
<H2>See Also</H2>
<A HREF="../../lib/ic/get_delta-2.html">get_delta / 2</A>
</BODY></HTML>
